package com.chen.recruit.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.chen.recruit.common.api.CommonResult;
import com.chen.recruit.domain.bo.ServerBo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "服务器监控 ServerController")
@RestController
public class ServerController {

    @ApiOperation("获取服务器状态")
    @SaCheckPermission("monitor:server:get")
    @GetMapping("/monitor/server")
    public CommonResult getServerInfo() throws Exception {
        ServerBo serverBo = new ServerBo();
        serverBo.copyTo();
        return CommonResult.success(serverBo);
    }

}
